﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="navigation-list.aspx.cs"
    Inherits="SsWeb._console.core.navigation_list" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <label>
            父结点</label>
        <asp:TextBox ID="_ctlEditParent" runat="server" ReadOnly="true"></asp:TextBox>
        <asp:LinkButton ID="_ctlReset" runat="server" Text="清空" OnClick="_ctlReset_Click" /><br />
        <label>
            名称</label>
        <asp:TextBox ID="_ctlEditCaption" runat="server"></asp:TextBox><br />
        <label>
            GroupName</label>
        <asp:TextBox ID="_ctlEditGroupName" runat="server"></asp:TextBox><br />
        <label>
            Views</label>
            <asp:TreeView ID="_ctlTreeView" runat="server" ShowCheckBoxes="All"></asp:TreeView>
        <br />
        <label>
            Arguments</label>
        <asp:TextBox ID="_ctlEditArguments" runat="server"></asp:TextBox>
        <br />
        <label>
            IsDefault</label>
        <asp:CheckBox ID="_ctlCheckIsDefault" Text="" runat="server" /><br />
        <asp:Button ID="_ctlBtnSave" runat="server" Text="保存" OnClick="_ctlBtnSave_Click" />
    </div>
    <div>
        <asp:Button ID="_ctlBtnSetDefault" runat="server" Text="设置为默认导航" 
            onclick="_ctlBtnSetDefault_Click" />
        
        <asp:Button ID="_ctlBtnSetShortcut" runat="server" Text="设置为快捷方式" 
            onclick="_ctlBtnSetShortcut_Click" />
    </div>
    <div>
        <asp:TreeView ID="_ctlTreeNavigation" runat="server" Width="100%" OnSelectedNodeChanged="_ctlTreeNavigation_SelectedNodeChanged">
            <SelectedNodeStyle Font-Bold="true" BackColor="ActiveBorder"/>
        </asp:TreeView>
    </div>
    <div>
    <asp:Repeater ID="_ctlGridShortcut" runat="server" 
            onitemcommand="_ctlGridShortcut_ItemCommand">
            <HeaderTemplate>
                <table w>
                    <tr>
                        <th>
                            -
                        </th>
                        <th>
                            Caption
                        </th>
                    </tr>
            </HeaderTemplate>
            <ItemTemplate>
                <tr>
                    <td>
                        <asp:LinkButton ID="_ctlBtnDelete" runat="server" CommandName="delete" CommandArgument='<%# Eval("NavigationId") %>'>删除</asp:LinkButton>
                    </td>
                    <td>
                        <%# Eval("Caption") %>
                    </td>
                </tr>
            </ItemTemplate>
            <FooterTemplate>
                </table>
            </FooterTemplate>
        </asp:Repeater>
    </div>
    </form>
</body>
</html>
